/**
 * SimpleStoreInfo
 */
export interface SimpleStoreInfo {
  /**
   * 详细地址
   */
  addressDetails?: string;
  /**
   * 行政区编码
   */
  areaCode?: string;
  /**
   * 店铺id
   */
  id?: number;
  /**
   * 店铺logo
   */
  imgUrl?: string;
  /**
   * 店铺名称
   */
  name?: string;
  storeName?: string;
  /**
   * 联系方式
   */
  phone?: string;
  /**
   * 店铺logo
   */
  logo?: string;
}

/**
 * EtwStoreImage
 */
export interface EtwStoreImage {
  id?: number;
  imgUrl?: string|string[];
  sort?: number;
  storeId?: number;
  imageId?: number;
}

export type StoreOnlineStatus = 'ONLINE' | 'OFFLINE'

/**
 * StoreCouponOrderVo
 */
export interface StoreCouponOrderVo {
  couponName?: string;
  couponNo?: string;
  couponUserId?: number;
  cover?: string;
  payment?: number;
  pickupCode?: string;
  validTime?: Date;
  phone?:string;
  address?:string;
  contactName?:string;
  comment?:string;
  pickupType?:string;
  isMade?: boolean;
}

/**
 * MyStoreInfo
 */
export interface MyStoreInfo {
  /**
   * 详细地址
   */
  addressDetails?: string;
  /**
   * 行政区码
   */
  areaCode?: string;
  /**
   * 浏览次数
   */
  browseNumber?: number;
  /**
   * 类别id
   */
  categoryId?: number;
  /**
   * 店铺特色描述
   */
  characteristic?: string;
  /**
   * 创建时间
   */
  createdTime?: number;
  /**
   * 禁用
   */
  disable?: boolean;
  id?: number;
  /**
   * 封面图片
   */
  imgUrl?: string;
  /**
   * 纬度
   */
  latitude?: number;
  /**
   * 点赞数
   */
  likeNumber?: number;
  /**
   * 好评率
   */
  likeRate?: number;
  /**
   * 经度
   */
  longitude?: number;
  /**
   * 店铺名称
   */
  name?: string;
  /**
   * 下一次营业时间
   */
  nextOpeningTime?: number;
  /**
   * 下一次外卖营业时间
   */
  nextOpeningTimeTakeOut?: number;
  /**
   * onlineStatus=>[ ONLINE->上线  OFFLINE->下线 ]
   * CJ纯享版：'ONLINE' | 'OFFLINE'
   */
  onlineStatus?: string;
  /**
   * deliveryStatus=>[ ONLINE->配送  OFFLINE->不配送 ]
   * CJ纯享版：'ONLINE' | 'OFFLINE'
   */
  deliveryStatus?: string;
  /**
   * 人均消费
   */
  perCost?: number;
  /**
   * 联系电话
   */
  phone?: string;
  /**
   * 销量
   */
  sales?: number;
  /**
   * 店铺评分
   */
  score?: number;
  /**
   * 商家用户di
   */
  userId?: number;
  /**
   * 联系方式：微信号
   */
  weChatAccount?: string;
}

/**
 * StoreCouponVo
 */
export interface StoreCouponVo {
  couponId?: number;
  couponName?: string;
  cover?: string;
  distributeType?: string;
  extTotalTeamMember?: number;
  needPay?: number;
  quota?: number;
  quotaStartTime?: number;
  quotaEndTime?: number;
  validStartTime?: number;
  validEndTime?: number;
  takeCount?: number;
  usedCount?: number;
}

// 钱包状态 =>[ DISABLE->无效  ENABLE->启用 ]
export type WalletStatus = 'DISABLE' | 'ENABLE'

/**
 * StoreWallet,商家钱包
 */
export interface StoreWallet {
  /**
   * 待入账金额
   */
  amountToBeRecord?: number;
  /**
   * 余额
   */
  balance?: number;
  id?: number;
  /**
   * 状态 =>[ DISABLE->无效  ENABLE->启用 ]
   */
  status?: WalletStatus;
  storeId?: number;
}
/**
 * WithdrawalRange,提现额度范围
 */
export interface WithdrawalRange {
  /**
   * 最大额度
   */
  max?: number;
  /**
   * 最小额度
   */
  min?: number;
}

// 提现申请状态 =>[ FAIL->失败  SUBMIT->提交  SUCCESS->成功 ]
export type DrawApplyStatus = 'FAIL' | 'SUBMIT' | 'SUCCESS'

/**
 * StoreWalletDrawApply
 */
export interface StoreWalletDrawApply {
  /**
   * 金额
   */
  amount?: number;
  /**
   * 提现编号
   */
  applyNo?: string;
  createdTime?: Date;
  /**
   * 失败原因
   */
  failReason?: string;
  id?: number;
  /**
   * 提现申请状态 =>[ FAIL->失败  SUBMIT->提交  SUCCESS->成功 ]
   */
  status?: DrawApplyStatus;
  /**
   * 商家id
   */
  storeId?: number;
  updatedTime?: Date;
}

// 引用类型 =>[ ACTIVITY_COUPON->活动优惠券 ]
export type RefType = 'ACTIVITY_COUPON'

// 状态 =>[ DISABLE->无效  ENABLE->启用 ]
export type WalletRecordStatus = 'DISABLE' | 'ENABLE'

// 类型=>[ DISCHARGE->出账  CHARGE->入账  TO_BE_CHARGE->待入账 ]
export type WalletRecordType = 'DISCHARGE' | 'CHARGE' | 'TO_BE_CHARGE'

/**
 * StoreWalletRecord,商家钱包账单记录
 */
export interface StoreWalletRecord {
  /**
   * 金额
   */
  amount?: number;
  createdTime?: Date;
  id?: number;
  /**
   * 引用id
   */
  refId?: number;
  /**
   * 引用类型=>[ ACTIVITY_COUPON->活动优惠券 ]
   */
  refType?: RefType;
  /**
   * 状态=>[ DISABLE->无效  ENABLE->启用 ]
   */
  status?: WalletRecordStatus;
  storeId?: number;
  /**
   * 类型=>[ DISCHARGE->出账  CHARGE->入账  TO_BE_CHARGE->待入账 ]
   */
  type?: WalletRecordType;
  updatedTime?: Date;
}

/**
 * DataToday
 */
export interface DataToday {
  couponNum?: number;
  income?: number;
}
